<head>
	<link href="<?php echo base_url(); ?>assets/css/style-trx.css" rel="stylesheet" type="text/css"/>
</head>
<body>
	<div class="trx-title-bkb">Bukti Keluar Barang</div>
    <?php
	echo form_open('transaksi/sales_order_out/simpan');
	$nama_pabrik = $row->nama_pabrik;
	?>
    <div class="trx-bkb">
    <table width="100%" cellpadding="0" cellspacing="0" style="border:#000 1px solid;">
        <tr height="25">
            <td width="25%" class="trx-title-table"><strong>Prokode</strong>&nbsp;&nbsp;</td>
            <td width="75%" class="trx-isi-table">&nbsp;&nbsp;<?php echo $row->prokode;?></td>
        </tr>
        <tr height="25">
            <td width="25%" class="trx-title-table"><strong>Nama Produk</strong>&nbsp;&nbsp;</td>
            <td width="75%" class="trx-isi-table">&nbsp;&nbsp;<?php echo $row->nama;?></td>
        </tr>
        <tr height="25">
            <td width="25%" class="trx-title-table"><strong>Pabrik</strong>&nbsp;&nbsp;</td>
            <td width="75%" class="trx-isi-table">&nbsp;&nbsp;<?php echo ucwords($nama_pabrik);?></td>
        </tr>
        <tr height="25">
            <td width="25%" class="trx-title-table"><strong>Qty</strong>&nbsp;&nbsp;</td>
            <td width="75%" class="trx-isi-table">
            &nbsp;&nbsp;<input type="text" name="qty" size="10" style="text-align:center; font-size:12px;">
            </td>
        </tr>
        <tr height="25">
            <td width="25%" class="trx-title-table"><strong>Batch</strong>&nbsp;&nbsp;</td>
            <td width="75%" class="trx-isi-table">
            &nbsp;&nbsp;
            <select name="batch">
            <option>--Pilih Batch---</option>
            <?php
			foreach($daftar_batch as $row){
				$nobatch = $row->nobatch;
				$stok    = $row->qty;
				$ed      = $row->ed;
				
				echo "<option value='$row->batch'>$nobatch&nbsp;&nbsp;|&nbsp;&nbsp;$stok&nbsp;&nbsp;|&nbsp;&nbsp;$ed</option>";
			}
			?>
            </select>
            </td>
        </tr>
        <tr height="25">
            <td width="25%" class="trx-title-tables"><strong>Keterangan</strong>&nbsp;&nbsp;</td>
            <td width="75%" class="trx-isi-tables">
            &nbsp;&nbsp;
            <textarea name="keterangan" style="width:90%;">
            </textarea>
            </td>
        </tr>
    </table>
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
        	<td align="center">
            	<input type="submit" name="simpan" value="Simpan" style="padding:5px 8px 5px 8px; background:#CCC; border:1px solid;"/>
            </td>
        </tr>
    </table>
    <input type="hidden" name="soid" value="<?php echo $soid;?>"/>
    <input type="hidden" name="nobkb" value="<?php echo $nobkb;?>"/>
    <input type="hidden" name="prokode" value="<?php echo $prokode;?>"/>
    <input type="hidden" name="pabrik" value="<?php echo $nama_pabrik;?>"/>
    </div>
    <?php echo form_close(); ?>
</body>